package nxu.service.impl;

import nxu.dao.UserLogMapper;
import nxu.entity.UserLog;
import nxu.service.UserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserLogServiceImp implements UserLogService {

    @Autowired
    private UserLogMapper userLogMapper;

    @Override
    public int userlogSave(UserLog userLog) {
        return userLogMapper.insertUserLog(userLog);
    }

    @Override
    public List<UserLog> getUserLog(String phone) {
        return userLogMapper.selectUserLogByPhone(phone);
    }
}
